home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / dlahrd.z / dlahrd
Encoding:
Text File  |  2002-10-03  |  5.5 KB  |  199 lines

  1.  
  2.  
  3.  
  4. DDDDLLLLAAAAHHHHRRRRDDDD((((3333SSSS))))                                                          DDDDLLLLAAAAHHHHRRRRDDDD((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      DLAHRD - reduce the first NB columns of a real general n-by-(n-k+1)
  10.      matrix A so that elements below the k-th subdiagonal are zero
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE DLAHRD( N, K, NB, A, LDA, TAU, T, LDT, Y, LDY )
  14.  
  15.          INTEGER        K, LDA, LDT, LDY, N, NB
  16.  
  17.          DOUBLE         PRECISION A( LDA, * ), T( LDT, NB ), TAU( NB ), Y(
  18.                         LDY, NB )
  19.  
  20. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  21.      These routines are part of the SCSL Scientific Library and can be loaded
  22.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  23.      directs the linker to use the multi-processor version of the library.
  24.  
  25.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  26.      4 bytes (32 bits). Another version of SCSL is available in which integers
  27.      are 8 bytes (64 bits).  This version allows the user access to larger
  28.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  29.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  30.      only one of the two versions; 4-byte integer and 8-byte integer library
  31.      calls cannot be mixed.
  32.  
  33. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  34.      DLAHRD reduces the first NB columns of a real general n-by-(n-k+1) matrix
  35.      A so that elements below the k-th subdiagonal are zero. The reduction is
  36.      performed by an orthogonal similarity transformation Q' * A * Q. The
  37.      routine returns the matrices V and T which determine Q as a block
  38.      reflector I - V*T*V', and also the matrix Y = A * V * T.
  39.  
  40.      This is an auxiliary routine called by DGEHRD.
  41.  
  42.  
  43. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  44.      N       (input) INTEGER
  45.              The order of the matrix A.
  46.  
  47.      K       (input) INTEGER
  48.              The offset for the reduction. Elements below the k-th subdiagonal
  49.              in the first NB columns are reduced to zero.
  50.  
  51.      NB      (input) INTEGER
  52.              The number of columns to be reduced.
  53.  
  54.      A       (input/output) DOUBLE PRECISION array, dimension (LDA,N-K+1)
  55.              On entry, the n-by-(n-k+1) general matrix A.  On exit, the
  56.              elements on and above the k-th subdiagonal in the first NB
  57.              columns are overwritten with the corresponding elements of the
  58.              reduced matrix; the elements below the k-th subdiagonal, with the
  59.              array TAU, represent the matrix Q as a product of elementary
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DDDDLLLLAAAAHHHHRRRRDDDD((((3333SSSS))))                                                          DDDDLLLLAAAAHHHHRRRRDDDD((((3333SSSS))))
  71.  
  72.  
  73.  
  74.              reflectors. The other columns of A are unchanged. See Further
  75.              Details.  LDA     (input) INTEGER The leading dimension of the
  76.              array A.  LDA >= max(1,N).
  77.  
  78.      TAU     (output) DOUBLE PRECISION array, dimension (NB)
  79.              The scalar factors of the elementary reflectors. See Further
  80.              Details.
  81.  
  82.      T       (output) DOUBLE PRECISION array, dimension (LDT,NB)
  83.              The upper triangular matrix T.
  84.  
  85.      LDT     (input) INTEGER
  86.              The leading dimension of the array T.  LDT >= NB.
  87.  
  88.      Y       (output) DOUBLE PRECISION array, dimension (LDY,NB)
  89.              The n-by-nb matrix Y.
  90.  
  91.      LDY     (input) INTEGER
  92.              The leading dimension of the array Y. LDY >= N.
  93.  
  94. FFFFUUUURRRRTTTTHHHHEEEERRRR DDDDEEEETTTTAAAAIIIILLLLSSSS
  95.      The matrix Q is represented as a product of nb elementary reflectors
  96.  
  97.         Q = H(1) H(2) . . . H(nb).
  98.  
  99.      Each H(i) has the form
  100.  
  101.         H(i) = I - tau * v * v'
  102.  
  103.      where tau is a real scalar, and v is a real vector with
  104.      v(1:i+k-1) = 0, v(i+k) = 1; v(i+k+1:n) is stored on exit in A(i+k+1:n,i),
  105.      and tau in TAU(i).
  106.  
  107.      The elements of the vectors v together form the (n-k+1)-by-nb matrix V
  108.      which is needed, with T and Y, to apply the transformation to the
  109.      unreduced part of the matrix, using an update of the form:  A := (I -
  110.      V*T*V') * (A - Y*V').
  111.  
  112.      The contents of A on exit are illustrated by the following example with n
  113.      = 7, k = 3 and nb = 2:
  114.  
  115.         ( a   h   a   a   a )
  116.         ( a   h   a   a   a )
  117.         ( a   h   a   a   a )
  118.         ( h   h   a   a   a )
  119.         ( v1  h   a   a   a )
  120.         ( v1  v2  a   a   a )
  121.         ( v1  v2  a   a   a )
  122.  
  123.      where a denotes an element of the original matrix A, h denotes a modified
  124.      element of the upper Hessenberg matrix H, and vi denotes an element of
  125.      the vector defining H(i).
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. DDDDLLLLAAAAHHHHRRRRDDDD((((3333SSSS))))                                                          DDDDLLLLAAAAHHHHRRRRDDDD((((3333SSSS))))
  137.  
  138.  
  139.  
  140. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  141.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  142.  
  143.      This man page is available only online.
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.